package com.firefly.admin.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "FySystemUserNotice", description = "用户消息关系")
public class FySystemUserNotice {

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "用户消息ID")
    private Long userNoticeId;

    @ApiModelProperty(value = "消息ID，不同类型存不同ID")
    private Long noticeId;

    @ApiModelProperty(value = "公告类型 1：系统公告 2：用户通知")
    private String noticeType;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "是否已读  1：已读 0：未读 默认0")
    private String alreadyRead;

    @ApiModelProperty(value = "读取时间")
    private Date readTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
